//
//  JgAdsRewardVodAdContainer.h
//  AnyThinkSDKDemo
//
//  Created by 李上京 on 2022/10/26.
//  Copyright © 2022 抽筋的灯. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <JgAdsSDK/JgAdsRewardVodAd.h>
@class JgAdsRewardVodAdContainer;
NS_ASSUME_NONNULL_BEGIN

@protocol JgAdsRewardVodAdContainerDelegate <NSObject>
/**
 *  激励视频广告素材加载成功
 */
- (void)jgadsContainer_jgadsRewardVodAdDidLoad:(JgAdsRewardVodAdContainer *)RewardVodAd withPrice:(NSInteger)bidPrice;

/**
 *  激励视频广告请求失败
 */
- (void)jgadsContainer_jgadsRewardVodAdFailLoadError:(NSError *)error;

@end

@interface JgAdsRewardVodAdContainer : NSObject

@property (nonatomic, weak)id<JgAdsRewardVodAdContainerDelegate> containerDelegate;

@property (nonatomic, weak)id<JgAdsRewardVodAdDelegate> delegate;

/// 初始化容器
- (instancetype)initPosId:(NSString *)posId delegate:(id<JgAdsRewardVodAdDelegate>)delegate;

/// 加载
- (void)loadRewardVodAd;

/// 展示
- (void)showRewardVodAdWithRootViewController:(UIViewController *)controller;

/// 销毁
- (void)close;

///上报竞赢通知
- (void)sendWinNotificationWithPrice:(NSInteger)price;

///上报竞败通知
- (void)sendWinFailNotificationReason:(JgAdsBiddingLossReason)lossReason winnerPirce:(NSInteger)winnerPirce;

///获取竞价价格
- (NSInteger)getBidPrice;
@end


NS_ASSUME_NONNULL_END
